@import "./variables.scss";

@mixin colorBtn($color) {
    background: $color;

    &:hover {
        color: $color;

        &:before,
        &:after {
            background: $color;
        }
    }
}
@mixin colorTextBtn($color) {
    color: $color;
}
.list-btn {
    margin: 10px 0;
}
.editColor-btn {
    @include colorTextBtn($yellow);
}
.logColor-btn {
    @include colorTextBtn($light-blue);
}

.copyColor-btn {
    @include colorTextBtn($tiffany);
}
.pinkColor-btn {
    @include colorTextBtn($pink);
}
.blue-btn {
    @include colorBtn($blue);
}

.light-blue-btn {
    @include colorBtn($light-blue);
}

.red-btn {
    @include colorBtn($red);
}

.pink-btn {
    @include colorBtn($pink);
}

.green-btn {
    @include colorBtn($green);
}
.copy-btn {
    @include colorBtn($tiffany);
}

.yellow-btn {
    @include colorBtn($yellow);
}
.margin-r10 {
    margin-right: 10px;
}
.pan-btn {
    font-size: 14px;
    color: #fff;
    padding: 14px 36px;
    border-radius: 8px;
    border: none;
    outline: none;
    transition: 600ms ease all;
    position: relative;
    display: inline-block;
    cursor: pointer;
    min-width: 70px;
    &:hover {
        backdrop-filter: blur(2px);
        background: rgba(255, 255, 255, 0.5);
        &:before,
        &:after {
            width: 100%;
            transition: 600ms ease all;
        }
    }

    &:before,
    &:after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        height: 2px;
        width: 0;
        transition: 400ms ease all;
    }

    &::after {
        right: inherit;
        top: inherit;
        left: 0;
        bottom: 0;
    }
    &.mini {
        padding: 5px 15px;
        border-radius: 4px;
    }
}

.custom-button {
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    background: #fff;
    color: #fff;
    -webkit-appearance: none;
    text-align: center;
    box-sizing: border-box;
    outline: 0;
    margin: 0;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 4px;
}
/* 文字按钮 */

.text_fenpei,
.editor {
    cursor: pointer;
    color: #337ab7;
    line-height: 26px;
}
.text_fenpei:hover,
.editor:hover {
    color: #46a6ff;
}

.text_del {
    cursor: pointer;
    color: #db0017;
    line-height: 26px;
}
.text_del:hover {
    color: #fa4800;
}
